class server {
    constructor(){

    }

    getUserInfo() {
        return new Promise(res => {
            util.ajax({
                url: config.baseApi + 'bookMall-admin/api/user/getUserInfo',
                success: (data => {
                    res(data.data)
                })
            })
        })
    };
    getCompanyList() {
        return new Promise(res => {
            util.ajax({
                url: config.baseApi + 'bookMall-admin/api/company//getCompanyList',
                success: (data => {
                    res(data.data)
                })
            })
        })
    };

    getCategList(){
        return new Promise((resolve,retject)=>{
            util.ajax({
                url: config.baseApi + 'bookMall-admin/api/categ/getCategList',
                success:(data=>{
                    resolve(data.data)
                })
            })
        })
    }
    getLogisticsCompanyList(){
        return new Promise((resolve, retject) => {
            util.ajax({
                url: config.baseApi + 'bookMall-admin/api/kd100/getLogisticsCompanyList',
                success: (data => {
                    resolve(data.data)
                })
            })
        })
    }

}
window['server'] = new server();